/**
 * 
 */
package org.heydr;

import java.util.Calendar;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Master {
	private static Logger logger = LoggerFactory.getLogger(Master.class);
	
	public static void main(String[] args) {
		
		logger.info("heydr master initializing ……");
		ApplicationContext context = new ClassPathXmlApplicationContext("master.xml");
		long time = context.getStartupDate();
		Calendar calendar = Calendar.getInstance();
		calendar.setTimeInMillis(time);
		logger.info("heydr master service start at :"+calendar.getTime());
		
	}
	
}